﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Entity {
    public class TableEntity {

        public string TableName { set; get; }

        public string TableId { set; get; }

        public string PryKey { set; get; }

        public List<TableBodyEntity> TableBodyList = new List<TableBodyEntity>();
       
    }


    public class TableBodyEntity :IComparable<TableBodyEntity>{
        public string ColName { set; get; }
        public string ColType { set; get; }//类型
        public string ColLength { set; get; }
        

        public string Name { set; get; }
        public string HeaderText { set; get; }
        public string DataPropertyName { set; get; }
        public string ColumnType { set; get; }
        public string Width { set; get; }
        public bool Visible { set; get; }
        public int DisplayIndex { set; get; }
        public bool ReadOnly { set; get; }

        public int CompareTo(TableBodyEntity other) {
            return this.DisplayIndex.CompareTo(other.DisplayIndex);
        }
    }
}
